﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WXFramework.Model
{
   public class CropNewsMsg:CropMsgBase
    {
       public override string msgtype
       {
           get { return "news"; }
       }

       public CropNews news { get; set; }

       public CropNewsMsg()
       {
           news = new CropNews();
       }


       public CropNewsMsg(RequestMessage reqmsg)
       {
           this.agentid = reqmsg.AgentID.ToString();
           this.touser = reqmsg.FromUserName;
           news = new CropNews();
       }

    }

   public class CropNews
   {
       public List<CropArticle> articles { get; set; }

       public CropNews()
       {
           this.articles = new List<CropArticle>();
       }
   }

   public class CropArticle
   {
       public string title { get; set; }

       public string description { get; set; }

       public string url { get; set; }

       public string picurl { get; set; }
   }
}
